$OpenBSD: patch-Makefile_in,v 1.2 2017/06/08 15:25:57 espie Exp $
Index: Makefile.in
--- Makefile.in.orig
+++ Makefile.in
@@ -82,13 +82,13 @@ uninstall: uninstall-links uninstall-html uninstall-do
 # --- Links --- #
 
 install-links: uninstall-links
-	if test $(LINKS_DIR) != none; then \
+	if test $(LINKS_DIR) != $(DESTDIR)none; then \
 	   ./mkinstalldirs $(LINKS_DIR); \
 	   (cd $(LINKS_DIR) ; $(LN_S) $(INSTALL_DIR)/bin/* .); \
 	fi
 
 uninstall-links:
-	-if test $(LINKS_DIR) != none; then \
+	-if test $(LINKS_DIR) != $(DESTDIR)none; then \
 	   (cd $(LINKS_DIR) 2>/dev/null && rm -f $(BIN_FILES)); \
 	   rmdir $(LINKS_DIR) 2>/dev/null; \
 	fi || exit 0;
